﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MqttBased
{
    public class MqttMessage
    {
        public string TopicName { get; set; }
        public Guid TaskId { get; set; }
        public MessageType MessageType { get; set; }
        public bool NeedReceived { get; set; }
        public string ReceivedTopicName { get; set; }
        public object MessageBody { get; set; }
    }

    public enum MessageType
    {
        /// <summary>
        /// 订阅端发送消息
        /// </summary>
        Send = 0,

        /// <summary>
        /// 发布端回调
        /// </summary>
        Back = 1,
    }
}
